package com.ruoyi.user.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.user.model.pojo.entity.User;
import com.ruoyi.user.model.pojo.request.app.AppSearchUserRequest;
import com.ruoyi.user.model.pojo.result.UserSearchInfo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 房间表 Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2024-11-17
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 搜索用户
     * @param userPage
     * @param request
     * @param userId
     * @return
     */
    Page<UserSearchInfo> searchUser(Page<User> userPage, @Param("param") AppSearchUserRequest request,@Param("userId") Long userId);

}
